﻿using CommunityToolkit.Mvvm.ComponentModel;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TUlingWpf.Models
{
    public class User : EntityBase
    {
        private string _name;

        /// <summary>
        /// 用户名
        /// </summary>
        public string Name
        {
            get { return _name; }
            set
            {
                SetProperty(ref _name, value);
            }
        }

        private string _password;

        /// <summary>
        /// 密码
        /// </summary>
        public string Password
        {
            get { return _password; }
            set
            {
                SetProperty(ref _password, value);
            }
        }

        private int _level;

        /// <summary>
        /// 用户权限
        /// </summary>
        public int Level
        {
            get { return _level; }
            set
            {
                SetProperty(ref _level, value);
            }
        }
    }
}